home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7941 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  979 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: visual c++: #undef
  5. Date: Thu, 15 Feb 1996 12:30:28 GMT
  6. Organization: Netcom
  7. Message-ID: <31232724.128137061@nntp.ix.netcom.com>
  8. References: <DMsrJE.7GI@info.uucp>
  9. NNTP-Posting-Host: ix-dc10-01.ix.netcom.com
  10. X-NETCOM-Date: Thu Feb 15  4:30:18 AM PST 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. body2872@mach1.wlu.ca (robert body 9308 u) wrote:
  14.  
  15. > my #undefs cause Visual C++ (2.2) to give warnings, yet it fine in 
  16. > Borland C++
  17. > i use it inside the function with first 
  18. > #define LA
  19. > ..code
  20. > #undef LA
  21. > or with #define and #undef between functions, and i always the warning 
  22. > that 
  23. > "unexpected characters following #undef; newline expected"
  24. > but there are no unexpected characters there, just
  25. > eg. #undef   ROWCOL(i)
  26.  
  27. I don't expect (i) there -- perhaps your compiler doesn't either.
  28.  
  29. The correct syntax is
  30.  
  31.     #undef ROWCOL
  32.  
  33.  
  34. Michael M Rubenstein
  35.